<div class="cl list-object">
<!-- Bookmark -->
	<div class="content_holder fl">
		<div id="content">
			<div class="block_holder br5 greyBg search_panel">
				<div class="search_descr">
					<?php echo Yii::t('main', 'Bookmarks'); ?>
					
				</div>
				<div class="buttons">
					<a href="#" class="listView"><?php echo Yii::t("main", "List")?></a>
					<a href="#" class="photoView"><?php echo Yii::t("main", "Photo")?></a>
				</div>
			</div>
			<!-- <div class="block_holder br5"> -->
				<div class="list big">
				<?php foreach ($dataProvider as $key => $value) : ?>
					<?php $object = $value->object; ?>
					<div class="object <?php echo ($key+1)%3==0 && $key!=0 ? 'third' : '';?>">
						<div class="object-price"><span><?php echo Yii::t("main", "from")?></span> <?php echo CHtml::encode($object->price); ?> €</div>
						<div class="object-img">
							<a href="<?php echo Yii::app()->createUrl('cataloge/view', array('id'=>$object->id)); ?>" title="<?php echo CHtml::encode($object->name); ?>">
								<?php if($object->mainImage){ ?>
									<?php echo $this->material_image($object->mainImage->id, $object->mainImage->name, '205', 'images/'.$object->user_id.'/'.$object->id); ?>
								<?php }else{ ?>
									<?php echo $this->material_image(0, 'noimage.gif', '205', ''); ?>
								<?php } ?>
							</a>
						</div>
						<h3 class="object-name">
							<a href="<?php echo Yii::app()->createUrl('cataloge/view', array('id'=>$object->id)); ?>" title="<?php echo CHtml::encode($object->name); ?>" class=""><?php echo CHtml::encode($object->name); ?></a>
						</h3>
						<?php if(isset($object->roomType)):?>
						<p><?php echo CHtml::encode($object->roomType->name); ?></p>
						<p class="descr"><?php echo CHtml::encode($object->description); ?></p>
						<div class="author">
							<a href="<?php echo Yii::app()->createUrl('users/view', array('id'=>$object->user->id));?>" class="photo">
								<?php echo $this->material_image($object->user->id, $object->user->avatar, '38', 'images/' . $object->user->id); ?>
							</a>
							<p><?php echo $object->user->full_name; ?></p>
							<p><span>10 Review</span></p>
						</div>
						<?php endif;?>
						<a href="<?php echo Yii::app()->createUrl('favorites/delFavorites',array('favorite'=>$value->id)); ?>" id="delFavorites">Delete bookmark</a>
						<?php $address = $object->country->name.', '.$object->city->name.', '.$object->street.' '.$object->house .'/'.$object->apartment;?>
						<a href="#" class="onmap showMap" title="<?php echo $address?>"><?php echo $address?></a>
					</div>
				<?php endforeach; ?>
				</div>
				<!-- <div class="tab_holder">
					<ul id="catalog" class="cl">
						<?php foreach ($dataProvider as $key => $bookmark) : ?>
							<?php $object = $bookmark->object; ?>
							<li class="">
								<a href="<?php echo Yii::app()->createUrl('cataloge/view', array('id'=>$object->id)); ?>" title="">
									<?php if(isset($object->image_id)) : ?>
										<?php echo $this->material_image($object->mainImage->id, $object->mainImage->name, '184', 'images/'.$object->user_id.'/'.$object->id); ?>
									<?php endif; ?>
									<?php echo CHtml::encode($object->name); ?>
								</a>
							</li>
						<?php endforeach; ?>
					</ul>
				</div> -->
			<!-- </div> -->
		</div>
	</div>
	<!-- END Bookmark -->
<!-- User -->
	<div id="right" class="br5">
		<div class="order_form">
			<div class="box">
				<div class="user_block">
					<div class="user_photo"> 
						<?php echo $this->material_image($user->id, $user->avatar, '187', 'images/' . $user->id); ?>
					</div>
					<div class="user_name"><?php echo CHtml::encode($user->full_name); ?></div>
				</div>
			</div>
		</div>
	</div>
	<!-- END User -->
</div>
